

#include "view_base.h"

View::View()
{
    ;
}

View::~View()
{
    ;
}

void View::OnBegin()
{
    ;
}

void View::OnExit()
{
    ;
}

int32_t View::OnDraw(Image *image, Rect rangeLimit)
{
    //先画自己
    ;

    //限制范围更新
    ;

    //再遍历子链表
    View *child = (View*)FirstChild();
    while (child)
    {
        child->OnDraw(image, rangeLimit);
        child = (View*)child->Prev();
    }

    return 0;
}
